home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / file-tra / fsp-2.7 / fsp-2 / fsp / include / client_def.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-02  |  2.8 KB  |  69 lines

  1.     /*********************************************************************\
  2.     *  Copyright (c) 1991 by Wen-King Su (wen-king@vlsi.cs.caltech.edu)   *
  3.     *                                                                     *
  4.     *  You may copy or modify this file in any manner you wish, provided  *
  5.     *  that this notice is always included, and that you hold the author  *
  6.     *  harmless for any loss or damage resulting from the installation or *
  7.     *  use of this software.                                              *
  8.     \*********************************************************************/
  9.  
  10. #ifndef _FSP_CLIENT_DEF_H_
  11. #define _FSP_CLIENT_DEF_H_
  12.  
  13. #include "common_def.h"
  14. #include "client_conf.h"
  15.  
  16. /*************************************************************************
  17. * The following global variables are used to change the behavior when    *
  18. * fgrab encounters a file with the same name in the current directory    *
  19. * Added 11 Jan 93 by A.E.J.Fellows                                       *
  20. *************************************************************************/
  21.  
  22. #define NOCLOBBER    1       /* Will not overwrite file of same name  */
  23. #define CLOBBER        2       /* Will always overwrite file even if
  24.                                    remote file is not found              */
  25. #define UNIQUE        3       /* Create unique name to avoid overwrite */
  26. #define CLOBBERONFIND    4       /* Only overwrite if file downloaded     */
  27. #define APPEND        5    /* Downloads will attempt to append to 
  28.                    end of file if it already exists      */
  29.  
  30. /*************************************************************************
  31. * The following global variables are used by fdu                 *
  32. * Added 5. Apr. 93 by M.Meskes                                           *
  33. *************************************************************************/
  34.  
  35. #define RECURSIVE    1
  36. #define SUM        2
  37. #define EACH        4
  38.  
  39.  
  40. /****************************************************************************
  41. * These structures are used to implement a opendir/readdir mechanism similar
  42. * to that of the normal opendir/reader mechanism in unix.
  43. ****************************************************************************/
  44.  
  45. typedef struct DDLIST {    struct DDLIST *next;
  46.             char          *path;
  47.             RDIRENT  **dep_root;
  48.             int         ref_cnt; } DDLIST;
  49.  
  50. typedef struct RDIR { DDLIST   *ddp;
  51.               RDIRENT **dep; } RDIR;
  52.  
  53. typedef struct rdirent { unsigned long  d_fileno;
  54.              unsigned short d_reclen;
  55.              unsigned short d_namelen;
  56.              char          *d_name; } rdirent;
  57.  
  58. extern int client_trace;
  59. extern int client_intr_state;
  60. extern int key_persists;
  61. extern unsigned long target_delay;
  62. extern unsigned long udp_sent_time;
  63. extern unsigned short client_buf_len;
  64. extern unsigned short client_net_len;
  65. extern char *env_local_dir;
  66. extern int env_timeout;
  67.  
  68. #endif /* _FSP_CLIENT_DEF_H_ */
  69.